package com.esri.core.map;

/* loaded from: classes.dex */
public enum PixelType {
    C128("C128", -3),
    C64("C64", -2),
    F32("F32", 9),
    F64("F64", 10),
    S16("S16", 6),
    S32("S32", 8),
    S8("S8", 4),
    U1("U1", 0),
    U16("U16", 5),
    U2("U2", 1),
    U32("U32", 7),
    U4("U4", 2),
    U8("U8", 3),
    UNKNOWN("Unknown", -1);
    
    private final String a;
    private final int b;

    PixelType(String str, int i) {
        this.a = str;
        this.b = i;
    }

    @Override // java.lang.Enum
    public String toString() {
        return this.a;
    }

    public int toInt() {
        return this.b;
    }

    public static PixelType fromValue(int i) {
        PixelType[] values;
        for (PixelType pixelType : values()) {
            if (i == pixelType.b) {
                return pixelType;
            }
        }
        return null;
    }

    public static PixelType fromString(String str) {
        PixelType[] values;
        if (str != null) {
            for (PixelType pixelType : values()) {
                if (str.equals(pixelType.a)) {
                    return pixelType;
                }
            }
        }
        return null;
    }
}
